package com.sunmouse.toollib.constants;

import android.Manifest;

/**
 * Created by Kvin on 2017/4/28.
 */
public class Interaction {
    /**
     * permission request codes or response codes
     */
    public static class Code {
        public static final int REQUEST_LOCATION = 11;
        public static final int RESPONSE_LOCATION = 21;
        public static final int REQUEST_CALL = 23;
        public static final int RESPONSE_CALL = 24;
        public static final int REQUEST_CAMERA = 25;
        public static final int RESPONSE_CAMERA = 26;
    }

    public static class Tel {
        public static final String ORDER = "400-0660-567";
    }

    /**
     * permissions
     */
    public static class Permissions {
        /**
         * location
         */
        public static final String[] LOC = new String[]{
                Manifest.permission.READ_PHONE_STATE,
                Manifest.permission.ACCESS_COARSE_LOCATION,
                Manifest.permission.ACCESS_FINE_LOCATION,
                Manifest.permission.READ_EXTERNAL_STORAGE,
                Manifest.permission.WRITE_EXTERNAL_STORAGE,
                // Manifest.permission.WRITE_SETTINGS  //debug cannot be   permitted
        };

        /**
         * camera
         */
        public static final String[] Camera = new String[]{
                Manifest.permission.CAMERA,
                Manifest.permission.READ_EXTERNAL_STORAGE,
                Manifest.permission.WRITE_EXTERNAL_STORAGE
        };

        /**
         * call
         */
        public static final String[] CALL = new String[]{
                Manifest.permission.CALL_PHONE
        };
        /**
         * file access
         */
        public static final String[] FILE_ACCESS = new String[]{
                Manifest.permission.READ_EXTERNAL_STORAGE,
                Manifest.permission.WRITE_EXTERNAL_STORAGE
        };


    }

}
